<?php
class controller_logs extends controller_base {
	/**
	 * 列表
	 */
	public function action_list() {
		empty($_GET['where']) ? $where = 'create_time>='.(strtotime(date('Y-m-d'))-86400*4) : $where = stripcslashes($_GET['where']);
		
		$model_logs = new model_logs();
		$res = $model_logs->find_all($where, 'log_id DESC');
		
		$this->assign('res', $res);
		$this->assign('log_count', $model_logs->count_by_conditions(1));
	}
}
?>